package com.ytjj.qmyx.supplychain.common.enums;


public enum CebUploadReqStatusEnums {
    UN_UPLOAD(0, "未上报"),
    SUCCESS(1, "上报成功"),
    FAIL(2, "上报失败"),
    ;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 状态描述
     */
    private String statusDesc;

    CebUploadReqStatusEnums(Integer status, String statusDesc) {
        this.status = status;
        this.statusDesc = statusDesc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public static String getStatusDesc(Integer status) {
        CebUploadReqStatusEnums[] values = CebUploadReqStatusEnums.values();
        for (CebUploadReqStatusEnums value : values) {
            if(value.status.equals(status)) {
                return value.statusDesc;
            }
        }
        return null;
    }
}
